from typing import TypeVar

_T = TypeVar("_T")

class weekday(object):
    def __init__(self, weekday: int, n: int | None = ...) -> None: ...
    def __call__(self: _T, n: int) -> _T: ...
    def __eq__(self, other: object) -> bool: ...
    def __repr__(self) -> str: ...
    def __hash__(self) -> int: ...
    weekday: int
    n: int
